kubectl create ns kubesphere-system
kubectl -n kubesphere-system create secret generic kubesphere-ca  \
--from-file=ca.crt=/etc/kubernetes/pki/ca.crt  \
--from-file=ca.key=/etc/kubernetes/pki/ca.key

kubectl create ns kubesphere-monitoring-system
kubectl -n kubesphere-monitoring-system create secret generic kube-etcd-client-certs  \
--from-file=etcd-client-ca.crt=/etc/etcd/pki/ca.pem  \
--from-file=etcd-client.crt=/etc/etcd/pki/etcd.pem  \
--from-file=etcd-client.key=/etc/etcd/pki/etcd-key.pem

#kubectl apply -f kubesphere-minimal.yaml 
kubectl apply -f https://raw.githubusercontent.com/kubesphere/ks-installer/master/kubesphere-minimal.yaml

kubectl taint nodes master-node1 node-role.kubernetes.io/master-
kubectl taint nodes master-node2 node-role.kubernetes.io/master-
kubectl taint nodes master-node3 node-role.kubernetes.io/master-
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
